#include "common.hpp"

int main()
{
    // 创建共享内存
    int shmid = CreateShm();
    
    // 挂接
    char* shmaddr = (char*)shmat(shmid, NULL, 0);

    // 通信
    while(true)
    {
        cout<<"add / delete / query / exit"<<endl;
        cout<<"Please Enter@ ";
        // cin >> shmaddr;
        fgets(shmaddr, size, stdin);
    }
    // 去关联
    shmdt(shmaddr);

    return 0;
}
